<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/connopen.asp"-->
<!--#include file="lib/asp-common-lib.asp"-->
<%
id=clng(saferequest("id",1))

Set rs_edoc = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * from cdedoc where cd="&id
rs_edoc.Open sql,conn,1,1
if not rs_edoc.eof then

%>

<table id="record" class="full res">
    <thead>
        <tr><th colspan="7" scope="col">随附单据列表</th></tr>
    </thead>
    <tbody>
        <tr>
        <th scope="col">ID</th>
        <th scope="col">文件名</th>
        <th scope="col">文件大小</th>
        <th scope="col">发送IC卡号</th>
        <th scope="col">发送人姓名</th>
        <th scope="col">单据所有人</th>
        <th scope="col">发送时间</th>
        </tr>
        <%
        do while not rs_edoc.eof
        %>
        <tr>
            <th class="sub" scope="row"><%=rs_edoc.AbsolutePosition%></th>
            <th class="sub" scope="row"><a href="edocfile.asp?id=<%=rs_edoc("id")%>" target="_blank"><%=rs_edoc("edoc_id")%></a></th>
            <th class="sub" scope="row"><%=clng(rs_edoc("edoc_size")/1024)%> KB</th>
            <th class="sub" scope="row"><%=rs_edoc("transfer_iccard")%></th>
            <th class="sub" scope="row"><%=rs_edoc("transfer_name")%></th>
            <th class="sub" scope="row"><%=rs_edoc("edoc_owner_name")%></th>
            <th class="sub" scope="row"><%=rs_edoc("add_time")%></th>
        </tr>
        <%
            rs_edoc.movenext
        loop
        %>
    </tbody>
</table>
<%
end if
rs_edoc.close
set rs_edoc=nothing
%>

<!--#include file="lib/connclose.asp"-->

